﻿<Window x:Class="WPF3DTutorial.Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Zove Visualization" Height="580" Width="576"
    >
    <!--
  /*
  * Use this code at your own risk.  This code has no warranty
  * and the author is not responsible for any damage, harm,
  * or dissatisfaction from using or running the code.  Make
  * sure that you understand the code before running it.
  *
  * You may re-use this code in whole or in part, but please
  * give the author credit in your code comments.
  *
  * Mike Hodnick
  * www.kindohm.com
  *
  */
  -->
    <Grid>
        <DockPanel
     Width="Auto"
     VerticalAlignment="Stretch"
     Height="Auto"
     HorizontalAlignment="Stretch"
     Grid.ColumnSpan="1"
     Grid.Column="0"
     Grid.Row="0"
     Margin="0,0,0,0"
     Grid.RowSpan="1">
            <DockPanel>
                <Slider Name="XAxisSlider" ValueChanged="XAxisSlider_ValueChanged" DockPanel.Dock="Top" Orientation="Horizontal"></Slider>
                <Slider Name="YAxisSlider" ValueChanged="YAxisSlider_ValueChanged" DockPanel.Dock="Bottom" Orientation="Horizontal"></Slider>
                <Slider Name="ZAxisSlider" ValueChanged="ZAxisSlider_ValueChanged" DockPanel.Dock="Left" Orientation="Vertical"></Slider>
                <Slider Name="ZoomSlider" ValueChanged="ZoomSlider_ValueChanged" DockPanel.Dock="Right" Orientation="Vertical"></Slider>
                <StackPanel>
                    <StackPanel.Background>
                        <LinearGradientBrush>
                            <GradientStop Color="White" Offset="0" />
                            <GradientStop Color="DarkKhaki" Offset=".3" />
                            <GradientStop Color="DarkKhaki" Offset=".7" />
                            <GradientStop Color="White" Offset="1" />
                        </LinearGradientBrush>
                    </StackPanel.Background>
                    <StackPanel Margin="10">
                        <Separator />
                        <Separator />
                        <Button Name="simpleButton" Click="simpleButtonClick">Simple</Button>
                        <Button Name="Rectangle" Click="Rectangle_Click">Visualize</Button>
                        <Button Name="topographyButton" Click="topographyButtonClick">Topography</Button>
                        <Separator />
                        <CheckBox Name="normalsCheckBox">Show Normals</CheckBox>
                        <TextBlock Text="Normal Size:" />
                        <TextBox Name="normalSizeTextBox" Text="1" />
                        <Button Height="23" Name="btnFitWindo" Width="75" Click="OnClick_Fit">Fit Window</Button>
                        <Separator />
                        <CheckBox Name="wireframeCheckBox">Show Wireframe</CheckBox>
                        <ComboBox Height="23" Name="cbModels" Width="120" />
                    </StackPanel>
                    <TextBox Height="166" Name="tbCriteria" Width="120" />
                </StackPanel>
                <Viewport3D Name="mainViewport" ClipToBounds="True">
                    <Viewport3D.Camera>
                        <PerspectiveCamera FarPlaneDistance="100" LookDirection="-11,-10,-9" UpDirection="0,1,0" NearPlaneDistance="1" Position="11,10,9" FieldOfView="70" />
                    </Viewport3D.Camera>
                    <ModelVisual3D>
                        <ModelVisual3D.Content>
                            <DirectionalLight Color="White" Direction="-2,-3,-1" />
                        </ModelVisual3D.Content>
                    </ModelVisual3D>
                </Viewport3D>
            </DockPanel>
        </DockPanel>
    </Grid>
</Window>
